package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.*
import com.changpay.zywy.mvp.model.*


/**
 * Created by chenxz on 2018/5/27.
 */
class CountTotalPresenter : BasePresenter<CountTotalContract.Model, CountTotalContract.View>(),
    CountTotalContract.Presenter {
    override fun getStats(map: MutableMap<String, String>) {
        mModel?.getStats(map)?.ss(mModel, mView) {
            mView?.showStats(it.result)
        }
    }


    override fun createModel(): CountTotalContract.Model? = CountTotalModel()

}